<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php if(isset($_SESSION['admin'])){?>
<style type="text/css" title="currentStyle">
	@import "<?php echo $this->basePath();?>/scripts/datagrid/css/demo_page.css";
	@import "<?php echo $this->basePath();?>/scripts/datagrid/css/demo_table.css";
	@import "<?php echo $this->basePath();?>/scripts/datagrid/css/demo_table_jui.css";
	@import "<?php echo $this->basePath();?>/scripts/datagrid/css/jquery-ui-1.8.4.custom.css";
</style>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		executeGrid(ADMIN_BASE_URL+'admin/totalonlineorders?admode=offline','All');
	} );
	function AddContent(id)
	{
		document.form.action=id;
		document.form.submit();
	}
</script>
<script type="text/javascript" language="javascript" src="<?php echo $this->basePath();?>/scripts/grid_utilities.js"></script>
<script type="text/javascript" src="<?php echo $this->basePath();?>/scripts/thickbox.js"></script>
<div class="admin_main_title">
	<h2>Off-line Order</h2><h3><a href="#">&#9660;<!--&#9650;--></a></h3>
	<div class="clearfix"></div>
</div>
<div class="admin_table_pad">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr><td>
			<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td valign="top">
						<div id="dt_example" style="">
							<div>
								<select id="f_u_id" name="f_u_id" onChange="return getfranchiseeorders('admin','offline');">
								<option value="">Select a franchisee</option>
									<? foreach($this->all_franchisee as $franchisee){?>
										<option value="<? echo $franchisee->user_id;?>"><? echo $franchisee->user_name;?></option>
									<?}?>										
								</select>
								<select id="dropCategory" name="dropCategory" onChange="return getgridsubcategories('admin','offline');">
								<option value="">Select a Category</option>	
								<? foreach($this->all_categories as $category){?>
									<option value="<? echo $category->category_id;?>"><? echo $category->category_name;?></option>
								<?}?>
								</select>
								<select id="dropSubCategory" name="dropSubCategory" onChange='return getfranchiseeorders("admin","offline");'>
									<option value="">select sub category</option>
								</select>
							</div>						
							<div id="">								
								<div id="dynamic">									
									<div align="center" style="color:#FF0000"><?php echo $this->message;?></div>
									<form name="form" id="form" method="post">
										<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
											<thead>
												<tr align="left">
													<th width="10%">S.No</th>
													<th width="10%">User Name</th>
													<th width="20%">Phone Number</th>
													<th width="10%">Total Amount</th> 
													<th width="10%">Due Amount</th> 
													<th width="10%">Order Status</th> 
													<th width="10%">Action</th>														
													<th width="10%">Status</th>														
												</tr>
												<tr>
													<td  class="gr_bg_ad td_pad0">
														<div class="admin_check_uncheck">
															<div style=" float:left; padding-right:5px; padding-top:7px;">
																<a href="javascript:void(0);" class="button_grey" onclick="checkAll('1','check')"><span ><strong>Check All</strong></span></a> </div>
															<div style=" float:left; padding-right:5px; padding-top:7px;"><a href="javascript:void(0);" class="button_grey" onclick="checkAll('0','check')"><span ><strong>Uncheck All</strong></span></a>
															</div>
															<div style=" float:left; padding-right:5px; padding-top:7px;"><a id="add_dist_id" href="<?php echo $this->Url('zfcadmin'); ?>/ad-posting" title="add" class="button_grey" ><span ><strong>Add classified</strong></span></a></div>

															<div style=" float:right; padding-right:5px; padding-top:7px;"><a href="javascript:void(0);" class="button_grey" onclick="changeStatus('check','<?php echo $this->Url('zfcadmin'); ?>/online-orders','<?php echo $this->Url('zfcadmin'); ?>/activate','Order(s) Activated','Activate the Order(s)','All','orders');"><span ><strong>Activate</strong></span></a>
															</div>
															<div style=" float:right; padding-right:5px; padding-top:7px;"><a href="javascript:void(0);" class="button_grey" onclick="changeStatus('check','<?php echo $this->Url('zfcadmin'); ?>/online-orders','<?php echo $this->Url('zfcadmin'); ?>/inactivate','Order(s) Deactivated',' Deactivate the Order(s)','All','orders');"><span ><strong>Deactivate</strong></span></a>
															</div>
															<div class="clear"></div>
														</div>
													</td>
												</tr>
											</thead>
											<tbody valign="top">
												<tr>
													<td colspan="5" class="dataTables_empty">Loading data from server</td>
												</tr>
											</tbody>
										</table>
									</form>
								</div>
								<div class="spacer"></div>
							</div>
						</div>
					</td>
				</tr>
			</table>
		</td></tr>
	</table>
	<div class="clear"></div>
</div>
<? } else {?>
<script>
	window.location=ADMIN_BASE_URL+'admin';
</script>
<?}?>

